package com.tedu.bill.demo3;

/**
 * Author：毕龙
 * Date: 2024/5/24 14:26
 */
public class TestDaemon {
    public static void main(String[] args) {

        MyThread2 t2 = new MyThread2("王伟");
        t2.setDaemon(true);

        t2.start();
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"\t优先级"+
                    Thread.currentThread().getPriority()+"\t"+i);
        }
    }
}
